package com.karrysong.blog_springboot.vo;

/**
 * @ClassName: ArticlVo
 * @Author: KarrySong
 * @Date: 2022/8/3 9:57
 * @Description:
 */
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.karrysong.blog_springboot.entity.User;
import lombok.Data;

import java.util.List;


@Data
public class ArticleVo {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String title;

    private String summary;

    private Integer commentCounts;

    private Integer viewCounts;

    private Integer supportCounts;

    private Integer weight;
    /**
     * 创建时间
     */
    private String createDate;

    private UserVo author;

    private ArticleBodyVo body;

    private List<TagVo> tags;

    private CategoryVo categoryVo;

    private Integer isOpenView;

    private Integer isCloseView;

    private Integer isVipView;

}
